c program to calculate product of digits of a number